<!doctype html>
<html lang="zh-CN">

<head>
  {include file="home_template/mz_static" title="$title" keywords="$site_info.site_seo_keywords"
  description="$site_info.site_seo_description" /}
</head>

<body class="user-select">

  {include file="mz_blog/header" /}

  <section class="container">
    <div class="content-wrap">
      {//***************文章列表***************}
      <div class="content">
        <div class="title">
          <h3>{$p_name}</h3>
        </div>
        {foreach name="articl" item="vol" key="k" }
        <article class="excerpt excerpt-{$k}">
          <a class="focus" href="/{$vol.akey}" target="_blank" title="{$vol.title}">
            <img class="thumb" data-original="{$vol.cover_img1|default='__MZBLOG__/images/excerpt.jpg'}"
              src="{$vol.cover_img1|default='__MZBLOG__/images/excerpt.jpg'}" alt="{$vol.title}">
          </a>
          <header>
            <a class="cat" href="program">
              {present
              name="$websiteCategory.name[$vol.website_category]"}{$websiteCategory.name[$vol.website_category]}
              {/present}
              <i></i></a>
            <h2><a href="/{$vol.akey}" target="_blank" title="{$vol.title}">{$vol.title}</a></h2>
          </header>
          <p class="meta">
            <time class="time"><i class="glyphicon glyphicon-time"></i> {$vol.publish_time|date='Y-m-d H:i'}</time>
            <span class="views"><i class="glyphicon glyphicon-eye-open"></i> 共{$vol.pageviews|floor}人围观</span>
            <a class="comment" href="/{$vol.akey}.html#comment" target="_blank"><i
                class="glyphicon glyphicon-comment"></i> {$vol.comments|floor}个不明物体</a>
            <a class="comment" href="/{$vol.akey}.html#user" target="_blank"><i class="glyphicon glyphicon-user"></i>
              {$vol.operator}</a>
          </p>
          <p class="note">{$vol.summary}</p>
        </article>
        {/foreach}
        {notempty name="page"}
        <nav class="pagination" style="display: none;">
          <ul>
            <li class="next-page"><a href="?page={$page}">下一页</a></li>
          </ul>
        </nav>
        {/notempty}
      </div>
    </div>
    <aside class="sidebar">
      <div class="fixed">
        <div class="widget widget_search">
          <form class="navbar-form" action="/search" method="get">
            <div class="input-group">
              <input type="text" name="keys" class="form-control" size="35" placeholder="请输入关键字" maxlength="15"
                autocomplete="off">
              <span class="input-group-btn">
                <button class="btn btn-default btn-search" type="submit">搜索</button>
              </span>
            </div>
          </form>
        </div>
        {//***************每日一句***************}
        <div class="widget widget_sentence">
          <h3>每日一句</h3>
          <div class="widget-sentence-content" style="min-height:100px;">
            <h4>{$erysts.dt}</h4>
            <p>{$erysts.co|raw}</p>
          </div>
        </div>
      </div>
      {//***************热门文章***************}
      <div class="widget widget_hot">
        <h3>热门文章</h3>
        <ul>
          {foreach name="hotacl" item="vol" key="k" }
          <li>
            <a href="/{$vol.akey}" target="_blank">
              <span class="thumbnail"><img class="thumb"
                  data-original="{$vol.cover_img1|default='__MZBLOG__/images/excerpt.jpg'}"
                  src="{$vol.cover_img1|default='__MZBLOG__/images/excerpt.jpg'}" alt="{$vol.title}"></span>
              <span class="text">{$vol.title}</span>
              <span class="muted"><i class="glyphicon glyphicon-time"></i> {$vol.publish_time|date='Y-m-d'}</span>
              <span class="muted"><i class="glyphicon glyphicon-eye-open"></i> {$vol.pageviews|floor}</span>
            </a>
          </li>
          {/foreach}
        </ul>
      </div>
    </aside>
  </section>

  {include file="home_template/mz_footer" /}
  <script>
    //每日一句GET
    $(document).ready(function (e) {
      $.getJSON("https://api.ooopn.com/ciba/api.php", function (data) {
        var day = new Date().getDay();
        var arr = new Array("日", "一", "二", "三", "四", "五", "六");
        var dt = data['date'].replace(/(\d{4})\-(\d{2})\-(\d{2})/, "$1年$2月$3日") + '星期' + arr[day];
        var co = data['ciba-en'] + '<br />' + data['ciba'];
        $("#ciba_dt").text(dt);
        $("#ciba_co").html(co);
      });
    });
  </script>

</body>

</html>